import 'package:flutter/material.dart';
import 'package:mobile_app.core/core/presentation/helpers/screen_util_mixin.dart';
import 'package:mobile_app.core/core/presentation/theme/theme.dart';
import 'package:mobile_app.core/core/presentation/widgets/app_icon_button.dart';

class CardMoreActionButton extends StatelessWidget with ScreenUtilMixin {
  const CardMoreActionButton({
    required this.onPressed,
    super.key,
  });

  final VoidCallback onPressed;

  double get _scaleFactor => logWidthScaleFactor;

  @override
  Widget build(BuildContext context) {
    return AppIconButton(
      width: 40 * _scaleFactor,
      height: 60 * _scaleFactor,
      onPressed: onPressed,
      icon: Icon(
        Icons.more_vert,
        size: 28 * _scaleFactor,
        color: CoreTheme.of(context).primaryColor,
      ),
    );
  }
}
